package com.kaoshi.agency.controller;

import com.kaoshi.agency.service.TuanduiService;
import com.kaoshi.common.config.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/agency/tuandui")
public class TuanDuiController {
    @Autowired
    private TuanduiService tuanduiService;
    @RequestMapping("/findAll")
    public Result findAll(){
        return Result.ok(tuanduiService.list());
    }
}
